﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="WaittingDistributeList.ascx.cs"
    Inherits="NCS.Module.CMS.Admin.WorkFlow.WaittingDistributeList" %>
<%@ Register Assembly="NCS.Library" Namespace="NCS.Library.Controls"
    TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:UpdatePanel ID="uppanelWaitingDistribution" runat="server" UpdateMode="Conditional"
    RenderMode="Inline">
    <triggers>
        <asp:AsyncPostBackTrigger ControlID="dropZones" EventName="SelectedIndexChanged" />
        <asp:AsyncPostBackTrigger ControlID="dtgWaitingDeployList" EventName="RowCommand" />
    </triggers>
    <contenttemplate>
    <asp:Label id="lblUpdateStatus" ForeColor="Blue" runat="server" Font-Bold="True"></asp:Label>
        <table id="Table1" align="center" cellpadding="3" cellspacing="0" width="100%">
           
            <tr>
                <td >
                    <b>Chuyên mục</b></td>
                <td>
                    <asp:DropDownList ID="dropZones" runat="server" AutoPostBack="True" Width="480px">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td colspan="2">
                    <cc1:GridView ID="dtgWaitingDeployList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        PageSize="15" Width="100%" OnRowDataBound="dtgWaitingDeployList_RowDataBound"
                        OnRowCommand="dtgWaitingDeployList_RowCommand">
                        <AlternatingRowStyle CssClass="Grid_Raw2" />
                            <RowStyle CssClass="Grid_Raw1" />
                            <HeaderStyle Font-Bold="True" CssClass="Grid_Top"></HeaderStyle>
                        <Columns>
                            <asp:BoundField DataField="Content_ID" HeaderStyle-Width="5%" HeaderText="ID" Visible="False" />
                            <asp:TemplateField HeaderText="Tên bài">
                                <itemtemplate>
							        <asp:HyperLink ID="lnkHeadline" runat="server"></asp:HyperLink>
						        </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="150px"
                                HeaderText="Thao tác" ItemStyle-HorizontalAlign="Center">
                                <itemtemplate>
							        <asp:Button ID="cmdDeploy" runat="server" CommandName="deploy" CssClass="Button"
								        Text="Đăng" CommandArgument='<%# Eval("Content_ID") %>' />
								    <asp:Button ID="Button2" runat="server" CommandArgument='<%# Eval("Content_ID") %>' CommandName="edit" CssClass="Button" Text="Sửa" />
								    <asp:Button ID="cmdDel" runat="server" CommandArgument='<%# Eval("Content_ID") %>'
								        CommandName="deletecontent" CssClass="Button" Text="Xóa" />
							        <asp:Button ID="cmdReturn" runat="server" CommandName="return" CssClass="Button"
								        Text="Trả lại" CommandArgument='<%# Eval("Content_ID") %>' />
						        </itemtemplate>
                            </asp:TemplateField>
                        </Columns>
                    </cc1:GridView>
                </td>
            </tr>
        </table>
        <br />
        <table align="center" cellspacing=" cellPadding=3 width=" class="InputBox" width="100%">
            <tr>
                <td>
                    Lý do trả lại</td>
            </tr>
            <tr>
                <td>
                    <asp:TextBox ID="txtComment" runat="server" Rows="5" TextMode="MultiLine" ToolTip="Lý do trả lại"
                        Width="100%"></asp:TextBox></td>
            </tr>
        </table>
    </contenttemplate>
</asp:UpdatePanel>
